import { VNode } from "vue"
export interface MessageProps {
    message?:string,//提示内容
    duration?:number,//显示时长
    showClose?:boolean,//控制关闭按钮是否显示
    type?:'success'|'warning'|'message'|'error',
    onDestroy:()=>void
}

export type CreateMessageProps=Omit<MessageProps,'onDestroy'>

//组件实例
export interface MessageContext {
    id:string;//辨别不同的实例
    vnode:VNode;
    props:MessageProps
}